#define _CRT_SECURE_NO_WARNINGS 1

#include "SeqList.h"

void SeqListSave(SL* ps)
{
	FILE* pf = fopen("SeqList.txt", "w");
	if (NULL == pf)
	{
		perror("fopen");
		exit(-1);
	}

	int i = 0;
	for (i = 0; i < ps->size; i++)
	{
		fprintf(pf, "%d ", ps->a[i]);
	}

	fclose(pf);
	pf = NULL;
}